'use strict';

const { Controller } = require('egg');

class crud extends Controller {
  async getInfo() {
    const { ctx } = this;
    const res = await ctx.service.index.getInfo();
    ctx.body = '' + JSON.stringify(res);
  }
  async delInfo() {
    const { ctx } = this;
    ctx.body = '獲取';

  }
  async updateInfo() {
    const { ctx } = this;
    ctx.body = '獲取';

  }
  async selInfo() {
    const { ctx } = this;

    ctx.body = '獲取';

  }

}

module.exports = crud;
